<?php


namespace App\Libraries\CustomsBills;


class Assert extends \Webmozart\Assert\Assert
{
    public static function floatAndRadixLength($value, $length, $radixLength, $message = '')
    {
        parent::float($value, $message);
        $valArr = explode('.', $value);
        $int = $valArr[0] ?? '';
        $radix = $valArr[1] ?? '';
        parent::maxLength($int, $length, $message);
        parent::maxLength($radix, $radixLength, $message);
    }
}